package com.gimi.cloud.jimi.app.consumer.feign.userInfo;


import com.gimi.cloud.jimi.dto.userInfo.RdEmergencyContactDTO;
import feign.Headers;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "jimi-app-service")
public interface EmergencyContactFeignService {

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "userEmergency/save", method = RequestMethod.POST)
    String saveEmergencyContact(RdEmergencyContactDTO dto);

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "userEmergency/getByUser", method = RequestMethod.POST)
    String getByUser(RdEmergencyContactDTO dto);
}
